package OOday01HomeWork;

public class Student {
    public String name;
    public int age;
    public String className;
    public String stuId;

    public Student() {
    }

    public Student(String name, int age, String className, String stuId) {
        this.name = name;
        this.age = age;
        this.className = className;
        this.stuId = stuId;
    }

    public void StuId(){
        System.out.println(name+"正在学习");
    }
    public void sayHi(){
        System.out.println("我是"+className+"班的"+name+"今年"+age+"岁了，我的学号是"+stuId);
    }
    public void playWith(String anotherName){
        System.out.println(name+"和"+anotherName+"在一起愉快地玩耍");
    }

}
